<?php
$bannerSize = count($data['banner']);
//dump($data);
//dump($_ENV);
?>
<!DOCTYPE html>
<html lang="zhcn">
<head>
    <include file="Common/meta" />
    <title>企业搜索结果 - {$_ENV['site'][0]['title']}</title>
    <include file="Common/link" />
</head>
<body>
<header class="layout-header">
    <div class="container">
        <div class="search-box dropdown">
            <button type="button" class="btn search-select dropdown-toggle"
                    data-toggle="dropdown">
                <span id="tc-select-text">企业</span>
                <i class="icon icon-down"></i>
            </button>
            <ul id="tc-select" class="dropdown-menu" role="menu">
                <li><a href="#" data-value="0">学生</a></li>
                <li><a href="#" data-value="1">企业</a></li>
                <!--<li><a href="#" data-value="2">资讯</a></li>-->
                <li><a href="#" data-value="3">竞赛</a></li>
            </ul>
            <input id="search-input" class="search-input" value="{$data['key']}" placeholder="请输入关键字搜索">
            <a href="#"></a> <i id="search-btn" class="icon icon-search"></i>
        </div>
        <a class="header-back" href="/"><i class="icon icon-left"></i></a>
    </div>
</header>
<div class="layout-body">
    <div class="container">
        <include file="Common/search_condition" />
        <if condition="count($data['list']) eq 0">
            <div class="content-empty show">
                <div class="picture"></div>
                <div class="info">
                    <div class="no-result">暂时没有符合该搜索条件的公司</div>
                    <div class="new-keyword">请重新修改搜索条件后再进行搜索</div>
                </div>
            </div>
        </if>
        <ul class="list-common">
            <?php
            $comSize = count($data['list']);
            ?>
            <for start="0" end="$comSize">
                <?php
            $com = $data['list'][$i];
            ?>
                <li class="list-item com-search-list">
                    <img class="item-logo" src="{$com['logo']}">
                    <div class="item-info">
                        <a class="item-title" href="/cpn/detail?id={$com['id']}">{$com['name']}</a>
                        <div class="info"><i class="icon icon-position"></i> {$com['area']}</div>
                        <div class="info"><i class="icon icon-tag"></i> {$com['industry']}</div>
                        <div class="desc">{$com['desc']}</div>
                    </div>
                    <!--<div class="item-parise"><i class="icon icon-praise"></i> {$com['parise']}</div>-->
                </li>
            </for>
        </ul>
        <include file="Common/search_page" />
    </div>
</div>
<script>
    var page = {
        keyword: '{$data['key']}',
        searchType: 1,
        searchArea: '{$data['area']}',
        searchIndustry: '{$data['indus']}',
        page: '{$data['page']}',
    };
</script>
<include file="Common/script" />
<script src="__PUBLIC__/asset/js/search.js"></script>
</body>
</html>